<?php
/*
 * Created on Nov 5, 2009
 * @author: DUC
 * @PARAM add Chronographs
 */

class Admin_CronController extends Clu_Controller_Action_Master
{
	public function init()
	{
		//require_once (APP_PATH.'/modules/admin/Model/AdminService.php');
		//require_once (APP_PATH.'/modules/place/Model/Place.php');
		//require_once (APP_PATH.'/modules/place/Model/City.php');
		//require_once (APP_PATH.'/modules/place/Model/District.php');
		//require_once (APP_PATH.'/modules/event/Model/Event.php');
		//require_once (APP_PATH.'/modules/category/Model/Category.php');
		//require_once(APP_PATH . "/modules/user/Model/User.php");
		$this->mPlace = new place_Model_Place();
		$this->mEvent = new event_Model_Service();
		$this->mService = new admin_Model_Service();
		parent::init();
	}
	
	public function updateCityDistrictCountersAction()
	{
		$this->mService->updateNumberOfPlacesInCityAndDistrictByCategory();
	}
	
	public function updateCategoriesCountersAction()
	{
		$this->mService->updateTotalNumberOfPlacesInCountryForEachCategory();
	}

	public function updateUserCountersAction()
	{
		$this->mService->updateNumberOfContentsInUserTable();
	}
	public function updateCommentsAction()
	{
		$this->mService->updateComment();
	}
}
?>